<?php class Application_Form_LoginForm extends Zend_Form
{
	public function init()
	{
		$username = $this->createElement('text','username');
		$username	->setRequired(true)
					->setLabel('Username ');
			
		$password = $this->createElement('password','password');
		$password	->setRequired(true)
					->setLabel('Password');	

		$signin = $this->createElement('submit','signin');
		$signin->setLabel('Sign in')
		->setIgnore(true);
		$this->addElement('hidden', 'return', array(
		        'value' => Zend_Controller_Front::getInstance()->getRequest()->getRequestUri(),                         
		));
		

		$this->addElements(array(
		$username,
		$password,
		$signin,
		));
	}
}